package com.naiterui.ehp.ps.sms.utils.constants;

/**
 * 通用短信平台常量
 *
 * @author
 * @since 1.0.0
 */
public class SmsConstants {
    /**
     * 平台使用状态
     */
    // 无效
    public static final int INVALID_STATUS = 1;
    // 有效
    public static final int EFFECTIVE_STAUTS = 0;
    // 已删除
    public static final int DELETED_STATUS = 2;

    /**
     * 请求过于频繁标志
     */
    // 异常
    public static final int REQUEST_FLAG_UNUSUAL = 1;
    // 正常
    public static final int REQUEST_FLAG_NORMAL = 0;

    /**
     * 是否状态码
     */
    // 是
    public static final int CODE_Y = 1;
    // 否
    public static final int CODE_N = 0;

    // 角色相关常量
    public static final String ROLE_SUPER = "ROLE_SUPER"; // 超级管理员
    public static final String ROLE_PREFIX = "ROLE_";// 角色前缀
    public static final String DEFAULT_ADMIN_USERNAME = "admin";// 内置超级管理员账号


    // ----------------------------API接口请求限制配置----------------------------//
    /**
     * 是否开启API请求限制
     **/
    public static final String API_LIMIT_ISPOEN = "api.limit.isopen";
    /**
     * 同一ip每分钟请求限制数
     **/
    public static final String API_LIMIT_IP_MAX = "api.limit.ip.max";
    /**
     * 同一手机号同一天请求限制数
     **/
    public static final String API_LIMIT_PHONE_MAX = "api.limit.phone.max";
    /**
     * 同一模板同一手机号每天请求限制数
     **/
    public static final String API_LIMIT_TEMPLATE_MAX = "api.limit.template.max";
    // ----------------------------梦网API接口配置----------------------------//
    /**
     * 梦网单个发送接口URL
     **/
    public static final String API_MONTNET_BASE_URL = "api.montnet.base.url";
    /**
     * 梦网用户名
     **/
    public static final String API_MONTNET_USERID = "api.montnet.userid";
    /**
     * 梦网密码
     **/
    public static final String API_MONTNET_PASSWORD = "api.montnet.password";

    // ----------------------------容联API接口配置----------------------------//
    /**
     * 容联单个发送接口URL
     **/
    public static final String API_CLOOPEN_BASE_URL = "api.cloopen.base.url";
    /**
     * 容联API版本
     **/
    public static final String API_CLOOPEN_VERSION = "api.cloopen.version";
    /**
     * 容联账号id
     **/
    public static final String API_CLOOPEN_SID = "api.cloopen.sid";
    /**
     * 容联应用ID
     **/
    public static final String API_CLOOPEN_APPID = "api.cloopen.appid";
    /**
     * 容联token
     **/
    public static final String API_CLOOPEN_TOKEN = "api.cloopen.token";

    // ----------------------------华信API接口配置----------------------------//
    /**
     * 发送接口URL
     **/
    public static final String API_HUAXIN_BASE_URL = "api.huaxin.base.url";
    /**
     * 华信账号
     **/
    public static final String API_HUAXIN_ACCOUNT = "api.huaxin.account";
    /**
     * 华信账号密码
     **/
    public static final String API_HUAXIN_PASSWORD = "api.huaxin.password";

    // ----------------------------阿里云短信API接口配置----------------------------//
    /**
     * 阿里云短信api key
     **/
    public static final String API_ALIYUN_KEY = "api.alisms.key";
    /**
     * 阿里云短信api
     **/
    public static final String API_ALIYUN_SECRET = "api.alisms.secret";

    // ----------------------------红豆电信短信API接口配置----------------------------//
    /**
     * 红豆基础url
     **/
    public static final String API_HONGDOU_BASE_URL = "api.hongdou.base.url";
    /**
     * 红豆app key
     */
    public static final String API_HONGDOU_KEY = "api.hongdou.key";
    /**
     * 红豆app secret
     */
    public static final String API_HONGDOU_SECRET = "api.hongdou.secret";
    /**
     * 红豆app code
     */
    public static final String API_HONGDOU_CODE = "api.hongdou.code";
}
